Singapore Math Olympiad Question 1